﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameTypes
{
    public class GameObject
    {

        private static int gid = 0;

        private String name;
        private Model model;
        private int id;

        Vector3 position;
        Matrix orientation;

        public GameObject(String name="unnamed")
        {
            this.id = GameObject.gid++;
            this.name = name;
        }

        public void setModel(Model model)
        {
            this.model = model;
        }

        public Model getModel()
        {
            return model;
        }

        public String getName()
        {
            return this.name;
        }

        public void setPosition(Vector3 position)
        {
            this.position = position;
        }

        public Vector3 getPoosition()
        {
            return this.position;
        }

        public void setOrientation(Matrix orientation)
        {
            this.orientation = orientation;
        }

        public Matrix getOrientation()
        {
            return this.orientation;
        }

        public int getId()
        {
            return this.id;
        }

    }
}
